home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / Exploit and vulnerability / w00w00 / misc / shokdial / animation / intro.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-13  |  2.2 KB  |  91 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include "colors.h"
  4.  
  5. #define TIME 100
  6. #define VERSION "v1.3"
  7.  
  8. char *ProgName;
  9.  
  10. void intro(void)
  11. {
  12.   register int i, k;
  13.   register int rand;
  14.   char buf[7][7];
  15.  
  16.   for (k = 0; k < 20; k++) {
  17.      for (i = 0; i < 9; i++ )  {
  18.         repeat:
  19.           rand = random() % 37;
  20.           if ((rand >= 31) && (rand <= 37)) 
  21.              sprintf(buf[i], "\033[%dm\033[1m", rand);
  22.           else goto repeat;
  23.      }
  24.  
  25.      printf("\t\t%sS ", buf[0]);
  26.      usleep(TIME);
  27.      fflush(stdout); 
  28.  
  29.      printf("%sh ", buf[1]);
  30.      usleep(TIME);
  31.      fflush(stdout);
  32.  
  33.      printf("%so ", buf[2]);
  34.      usleep(TIME);
  35.      fflush(stdout);
  36.  
  37.      printf("%sk ", buf[3]);
  38.      usleep(TIME);
  39.      fflush(stdout);
  40.  
  41.      printf("%sD ", buf[4]);
  42.      usleep(TIME);
  43.      fflush(stdout);
  44.  
  45.      printf("%si ", buf[5]);
  46.      usleep(TIME);
  47.      fflush(stdout);
  48.  
  49.      printf("%sa ", buf[6]);
  50.      usleep(TIME);
  51.      fflush(stdout);
  52.  
  53.      printf("%sl ", buf[7]);
  54.      usleep(TIME);
  55.      fflush(stdout);
  56.  
  57.      printf("%s %s%s %sf%so%sr %sU%sN%si%sX%s\r", 
  58.             BOLDBLUE, VERSION, NORMAL, PINK, BOLDCYAN, BOLDGREEN, PINK,
  59.             BOLDGREEN, BOLDWHITE, BOLDBLUE, NORMAL);
  60.  
  61.      fflush(stdout);
  62.   }
  63.  
  64.  
  65.   putchar('\n');
  66.   printf("\t\t------------------------------\n");
  67.   printf("\nWell what you do here, is enter 0000 for the range to begin\n");
  68.   printf("scanning and 9999 to end scanning if you want to scan all the\n");
  69.   printf("possible ranges, but you can put 4444 for the nmber to start\n"); 
  70.   printf("and 5555 for the number to begin to scan XXX-[4444-5555] for\n"); 
  71.   printf("local numbers and it would be 1-XXX-XXX-[4444-5555] for long\n");
  72.   printf("distance.\n");
  73.   printf("\nAlso, you can use random scanning (as opposed to sequential\n");
  74.   printf("scanning) by specifying the \"%s-r%s\" option...type:\n", PINK, NORMAL);
  75.   printf("%s%s%s -h %sfor %shelp%s.\n\n", BOLDRED, ProgName, BOLDRED, NORMAL, BOLDCYAN, NORMAL);
  76.   printf("Anywayz...enjoy!\n");
  77.   printf("\t\t%s--==+*~(%sShok%s)~*+==--%s\n\n", BOLDBLUE, BOLDWHITE, BOLDBLUE, NORMAL);
  78.  
  79.   printf("Hit enter to continue...\n");
  80.   getchar();
  81.   return;
  82. }
  83.  
  84. void main(int argc, char **argv) 
  85. {
  86.   ProgName = argv[0];
  87.   system("/usr/bin/clear");
  88.   sleep(1);
  89.   intro();
  90. }
  91.